﻿<UserControl x:Class="DeltaGroup.WheelOfJeopardy.UI.Screens.WagerScreen"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Commands="clr-namespace:DeltaGroup.WheelOfJeopardy.UI.Commands" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="500" Height="500" Margin="0,20">

    <StackPanel HorizontalAlignment="Center">
        <TextBlock Text="{Binding Path=Category}" Style="{StaticResource Title}" TextWrapping="Wrap"/>
        <TextBlock Text="Wager for your challenge!" Style="{StaticResource Title}"/>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <TextBlock Text="{Binding Path=Wager}" Style="{StaticResource Title}"/>
            <TextBlock Text="/" Style="{StaticResource Title}"/>
            <TextBlock Text="{Binding Path=MaxScore}" Style="{StaticResource Title}"/>
        </StackPanel>

        <Slider Minimum="1" Maximum="{Binding Path=MaxScore}" Interval="1" AutoToolTipPlacement="TopLeft" IsSnapToTickEnabled="True" Value="{Binding Path=Wager}" Margin="0,10"/>

        <Button  Content="Show me the challange!" Name="btnSubmit" Command="Commands:WoJCommands.Wager" CommandParameter="{Binding Path=Wager}" Style="{StaticResource GameMenu}"/>
    </StackPanel>

</UserControl>